package com.queue.rabbitmq.listener;

import com.queue.rabbitmq.entity.User;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class ConfirmReceiveListener {

    @RabbitListener(queues = "queue_confirm")
    public void receiveMessage(User user){
        System.out.println("confirm机制接收到的消息：" + user);
    }
}
